package com.egg.mall.config;

import com.egg.common.spring.util.SpringContextUtil;
import com.egg.mall.config.order.OrderConfig;

/**
 * 读取自定义配置
 *
 * @author east
 */
public class ReadConfig {


    /**
     * 读取订单取消超时时间
     *
     * @return
     */
    public static String orderCancelDelayTime() {
        try {
            OrderConfig configBean = SpringContextUtil.getBean(OrderConfig.class);
            return configBean.getCancelDelayTime();
        } catch (Exception e) {
            return "";
        }
    }


}